package com.hnxxxy.jfmgr;

import org.apache.commons.lang.StringUtils;

import java.util.regex.Pattern;

public class cs {
    public static void main(String[] args) {
        String s = "D:\\upload\\1.jpg4acee389-6bd4-4b4c-9e76-cd3bf59b1d11";
        int index = s.indexOf(".");
//        String left = s.substring(index);
        String right = s.substring(index+4);

        String x = StringUtils.substringBefore(s, right);

        System.out.println(right);
        System.out.println(x);
    }
}
